import { app, BrowserWindow } from "electron";
const createWindow = () => {
  const mainWindow = new BrowserWindow({
    width: 800,
    height: 600,
  });

  // mainWindow.loadURL("http://127.0.0.1:5173/");
  mainWindow.loadURL(
    `file://${import.meta.dirname.replace("electron", "dist\\index.html")}`
  );
};

// 在应用准备就绪时调用函数
app.whenReady().then(() => {
  createWindow();
});
